﻿using System;

namespace Glue.Converters
{
    internal class FloatDecimalConverter:GlueDefaultConverter<float,decimal>
    {
        internal override decimal InternalMapTowardsRight(float from)
        {
            return Convert.ToDecimal(from);
        }

        internal override float InternalMapTowardsLeft(decimal from)
        {
            return Convert.ToSingle(from);
        }
    }
}
